package com.bl.student.service.vo.comment;

import com.bl.student.common.enums.CommentType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liangweikang on 18/3/18.
 */
@Data
public class CommentVo {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "创建者ID")
    @Column(name = "creator_id")
    private String creatorId;

    @ApiModelProperty(value = "创建者昵称")
    @Column(name = "creator_nickname")
    private String creatorNickname;

    @ApiModelProperty(value = "创建者头像")
    @Column(name = "creator_avatar")
    private String creatorAvatar;

    @ApiModelProperty(value = "创建者昵称")
    @Column(name = "creator_nickname")
    private String receiverNickname;

    @ApiModelProperty(value = "创建者头像")
    @Column(name = "creator_avatar")
    private String receiverAvatar;

    @ApiModelProperty(value = "类型")
    @Enumerated(EnumType.STRING)
    private CommentType type;

    @ApiModelProperty(value = "主体ID")
    @Column(name = "task_id")
    private String taskId;

    @ApiModelProperty(value = "主体ID")
    @Column(name = "task_id")
    private String taskTitle;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "被评论ID")
    @Column(name = "receiver_id")
    private String receiverId;

    private Double score;
}
